package markgame2d.engine;

import java.awt.Rectangle;

import markgame2d.engine.interfaces.Collideable;

public class DefaultCollideable implements Collideable{

	private Rectangle rect;
	private boolean alive;
	
	public DefaultCollideable(int x, int y, int width, int height) {
		rect = new Rectangle(x, y, width, height);
		alive = true;
	}
	
	public Rectangle getBounds() {
		return rect;
	}
	public boolean isAlive() {
		return alive;
	}
	public void onColide(Collideable other) {}
	
	public void setAlive(boolean alive) {
		this.alive = alive;
	}
	
	public int getWidth() {
		return rect.width;
	}
	public int getHeight() {
		return rect.height;
	}
	
}
